package org.csu.measure.service;

import org.csu.measure.domain.CodeCount;

import java.io.IOException;

public class CodeService {

    public CodeCount getCodeCount(String filename) throws IOException {
        CodeCount codeCount = new CodeCount();

        codeCount = codeCount.getResult(filename);

        return codeCount;

        //有效程序行数
        // codeCount.getNormalLines()

        //空白行数
        // codeCount.getWhiteLines()

        //注释行数
        // codeCount.getCommentLines()

        //总行数
        // codeCount.totalLines()
    }
}
